package com.lottery.game.controller.v2.login.to;

import com.lottery.game.common.BaseObject;

import javax.validation.constraints.NotEmpty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : yinlin
 * @version : 1.0
 * @date : 2018/11/10 8:12 AM
 * @Description :
 * @Copyright : Copyright (c) 2018
 * @Company : KeRuYun Technology(Beijing) Chengdu Co. Ltd.
 * @link : com.vpay.exchange.core.model.dto.LoginTO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "用户登陆实体")
public class LoginTO extends BaseObject {

    @ApiModelProperty(dataType = "String", required = true, name = "username", notes = "用户名或者手机号",example = "18665777333")
    @NotEmpty(message = "登陆用户名或手机号不能为空")
    private String username;

    @ApiModelProperty(dataType = "String", required = true, name = "password", notes = "登陆密码",example = "788788")
    @NotEmpty(message = "登陆密码不能为空")
    private String password;
}
